<script setup lang="ts">
import {onBeforeMount, onMounted} from "vue";

onMounted(() => {
  console.log('child挂载完毕')
})
</script>

<template>

  <h1>我是生命周期的子组件呀</h1>
</template>

<style scoped>

</style>
